//
//  UIImageView+Category.swift
//  FirstSwiftProduct
//
//  Created by 范泽华 on 2017/11/6.
//  Copyright © 2017年 范泽华. All rights reserved.
//

import UIKit

extension UIImageView {
    
    public func setImageViewBlur(url:URL, float:CGFloat) {
        self.sd_setImage(with: url) { (image, error, cachetype, imageURL) in
            // 处理结果图片
            if (image == nil) {
                return
            }
            self.image = image?.gaussianBlur(blurAmount: float)
        }
    }
}
